<?php
   header('Access-Control-Allow-Origin:*');
   // 响应类型
   header('Access-Control-Allow-Methods:POST,GET,PUT,DELETE');
   // 响应头设置
   header('Access-Control-Allow-Headers:x-requested-with,Content-Type,X-CSRF-Token');
   
   $mysqli = new mysqli("localhost", "root", "root", "db_jiuji");
   
   if ($mysqli->connect_errno) {
       die();
   }
    
    $sql="select * from t_wrapper";
    $result=$mysqli->query($sql);
    
    $row=$result->fetch_assoc();
        
    echo(json_encode($row));
?>